﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/QuanTri.master" CodeBehind="QuanLyNguoiDung.aspx.cs" Inherits="Web_A3.Views.QuanTri.QuanLyNguoiDung" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	QuanTrinNguoiDung  
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        
    <script runat="server">
        void menu_User_MenuItemClick(object sender, MenuEventArgs e)
        {
            int index = int.Parse(e.Item.Value);
            MultiView1.ActiveViewIndex = index;
        }
        void Page_Load(object sender, EventArgs e)
        {
        if (!IsPostBack)
            {
            MultiView1.ActiveViewIndex = 0;
            }
        }
    </script>
    
    <asp:Menu ID="menu_User" runat="server" onMenuItemClick="menu_User_MenuItemClick"  BackColor="#FFFBD6" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" 
            ForeColor="#990000" Orientation="Horizontal" StaticSubMenuIndent="10px">
            <StaticSelectedStyle BackColor="#FFCC66" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
            <DynamicMenuStyle BackColor="#FFFBD6" />
            <DynamicSelectedStyle BackColor="#FFCC66" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticHoverStyle BackColor="#990000" ForeColor="White" />
            <Items>
                <asp:MenuItem Text="Xem thông tin ng&#432;&#7901;i dùng" Value="0">
                </asp:MenuItem>
                <asp:MenuItem Text="Thêm ng&#432;&#7901;i dùng" Value="1"></asp:MenuItem>
                <asp:MenuItem Text="Ch&#7881;nh s&#7917;a thông tin" Value="2"></asp:MenuItem>
            </Items>
        </asp:Menu>
        
        
    <div class="register">
        <asp:MultiView ID="MultiView1" runat="server" >
            <asp:View ID="view_UserInfo" runat="server">
                <table border="0" align="center">
                    <tr>
                         <td>Tên ng&#432;&#7901;i dùng</td>
                         <td><asp:TextBox ID="txb_Search" size="20" runat="server"></asp:TextBox><td> <input type="button"  id="btn_Search" value= "Tìm ki&#7871;m"></td> 
                    </tr>
                    <tr>
                        <th>Tên ng&#432;&#7901;i dùng</th>
                        
                        
                    </tr>
                </table>
            </asp:View>
            <asp:View ID="view_AddUser" runat="server">
                <form>
                    <table border="0" align="center">
                        <tr>
                            <td>Tên ng&#432;&#7901;i dùng:</td>
                            <td><asp:TextBox ID="txb_UserName" size="30" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>M&#7853;t kh&#7849;u:</td>
                            <td><asp:TextBox ID="txb_Password" size="30" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Email:</td>
                            <td><asp:TextBox ID="txb_Email" size="30" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Lo&#7841;i ng&#432;&#7901;i dùng:</td>
                            <td><select>
                                    <% foreach( var n in (IEnumerable<Web_A3.Models.LOAINGUOIDUNG>)ViewData["LoaiNguoiDung"])
                                       {%>
                                       <option><%= n.TenLoaiNguoiDung%></option>
                                    <%} %>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><asp:CheckBox ID="chb_SendMail" runat="server" /> G&#7917;i thông tin thông báo qua 
                                Email.</td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="button"  size="80" value= "Thêm"> <input type="reset" value= "H&#7911;y"/></td>
                            
                        </tr>
                    </table>
                 </form>
            </asp:View>
            <asp:View ID="view_EditUser" runat="server">
                    <table border="0" align="center">
                        <tr>
                            <td><asp:Image ID="Avatar" runat="server" /></td>
                            <td><asp:Button ID="btn_RemoveAvatar" runat="server" 
                                    Text="Xóa hình &#273;&#7841;i di&#7879;n" Width="150px" /></td>
                        </tr>
                        <tr>
                            <td>Lo&#7841;i ng&#432;&#7901;i dùng:</td>
                            <td><select width="150px">
                                    <% foreach( var n in (IEnumerable<Web_A3.Models.LOAINGUOIDUNG>)ViewData["LoaiNguoiDung"])
                                       {%>
                                       <option><%= n.TenLoaiNguoiDung%></option>
                                    <%} %>
                                </select></td>
                        </tr>
                        <tr>
                            <td></td>                            
                            <td><asp:Button ID="btn_RemoveSignature" runat="server" Text="Xóa ch&#7919; ký" 
                                    Width="150px" /></td>
                        </tr>
                        <tr>                            
                            <td></td>
                            <td><asp:Button ID="Button2" runat="server" Text="Reset m&#7853;t kh&#7849;u" 
                                    ToolTip="M&#7853;t kh&#7849;u m&#7899;i s&#7869; &#273;&#432;&#7907;c t&#7921; &#273;&#7897;ng g&#7917;i qua Email" Width="150px" /></td>
                        </tr>
                        
                        <tr>
                            <td colspan="2"><asp:CheckBox ID="chb_BanUser" runat="server" />C&#7845;m ng&#432;&#7901;i dùng truy 
                                c&#7853;p di&#7877;n &#273;àn</td>
                        </tr>
                        <tr>
                            <td>Th&#7901;i gian c&#7845;m:</td>
                            <td><asp:DropDownList ID="ddl_BannedTime" Width="150px" runat="server" 
                                    ToolTip="ng&#432;&#7901;i dùng truy c&#7853;p tính t&#7915; th&#7901;i &#273;i&#7875;m c&#7845;m"></asp:DropDownList>
                                Ngày</td> 
                            
                           
                            
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="button"  size="80" value= "L&#432;u thi&#7871;t l&#7853;p"/> <input type="reset" value= "H&#7911;y"/></td>
                            
                        </tr>
                        
                    </table>
            </asp:View>
        </asp:MultiView>
    </div>

</asp:Content>
